#include <stdio.h>

union dataxy
{
    int x;
    char y;
    long long t;
};

struct point
{
    int x;
    int y;
};




int main(){

    union dataxy d;
    
    printf("%d\n", sizeof(d));
    d.x = 10;
    printf("%d\n", d.x);
    d.y = 'a';
    printf("%d\n", d.x);
    printf("%d\n", d.t);

    struct point p1, *p2;
    p2 = &p1;
    p1.x = 1;
    p1.y = 2;

    printf("x=%d, y=%d", p2->x, p2->y);
    printf("x=%d, y=%d", (*p2).x, (*p2).y);
    //printf("x=%d, y=%d", p2.x, p2.y);

    return 0;
}